﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
//using Admin.cn.com.webxml.www;

namespace Admin
{
    /// <summary>
    /// 功能：取天气 
    /// 创建人：商伟
    /// 创建时间：2011-06-10
    /// </summary>
    public class WeatherInfo : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
           // context.Response.Write(GetWeatherInfo());
        }
  /*      public string GetWeatherInfo()
        {
            string weather = "潍坊";
            try
            {
                WeatherWebService rWeatherObj = new WeatherWebService();
                string[] wa = rWeatherObj.getWeatherbyCityName("潍坊");
                if (wa[6] != "")
                    weather +=  " 气温 " + wa[5] + " " + wa[7];
                else
                    weather += " 气温 " + wa[5] + " " + wa[7];
            }
            catch
            {

            }
            return weather;
        }*/
        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}